import json
import unittest
from api.login_iHRM_api import LoginApi
from common.assert_util import api_assert
from parameterized import parameterized
from common.read_json import read_json_data


class TestLogin(unittest.TestCase):
#登陆成功
    @parameterized.expand(read_json_data())
    def test01_case001(self,data,code,message,success):
        response =LoginApi.login_iHRM(data)
        print(response.json())
        api_assert(self,response,code,message,success)